package com.halflife.framework.domain;

import com.halflife.framework.generator.annotation.QueryAnn;

import java.io.Serializable;

/**
 * Created by zhaoyf on 2018/2/3.
 */
public class BaseDomain implements IBaseDomain {
    @QueryAnn(refered = true)
    protected Integer id;
    @QueryAnn(value = "是否有效",refered = true)
    protected Boolean valid;

    @QueryAnn(value = "序号")
    protected Integer ordinal;
    public void init() {
        this.valid = true;
    }
    @Override
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public Boolean getValid() {
        return valid;
    }

    @Override
    public void setValid(Boolean valid) {
        this.valid = valid;
    }

    public Integer getOrdinal() {
        return ordinal;
    }

    public void setOrdinal(Integer ordinal) {
        this.ordinal = ordinal;
    }
}
